package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-09-11
 * Time: 11:17
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/hello")
     public String sayHello(){
        System.out.println("调用了UserController中的sayHello()方法！");
         return "Hello!";
     }
     @RequestMapping("/hi")
     public String sayHi(){
         return "Hi!";
     }
}
